home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / asm_msc1.arc / SPEED.ASM < prev    next >
Assembly Source File  |  1988-11-20  |  2KB  |  47 lines

  1.          TITLE   'SPEED - Adjust Diskette Parameters'
  2. ; Adapted from SPEED411 and from "Inside the IBM PC",
  3. ; by Peter Norton, pages 138-139.
  4. ;
  5. ; At location x'78' is a pointer to the diskette
  6. ; parameter table. This program changes the first
  7. ; value, the Step Rate Time, which results in a
  8. ; quieter and somewhat faster running drive.
  9. ;
  10. ; The third byte of the table specifies the motor
  11. ; turn off delay time. It is changed from 37 msec
  12. ; to 200 msec, which results in fewer start-up
  13. ; operations.
  14. ;
  15. ; To install:
  16. ;     MASM SPEED;
  17. ;     LINK SPEED;
  18. ;     EXE2BIN SPEED.EXE SPEED.COM
  19. ;     DEL SPEED.EXE
  20. ;     SPEED
  21. ; The program can be run again without harm.
  22. ;
  23. CSEG     SEGMENT PARA PUBLIC 'CODE'
  24.          ASSUME  CS:CSEG,DS:CSEG,ES:CSEG
  25.          ORG     100H
  26. SPEED    PROC    FAR
  27.          PUSH    DS                      ;save for linkage
  28.          XOR     AX,AX                   ;clear for return
  29.          PUSH    AX                      ;put in stack
  30. ;
  31.          PUSH    DS                      ;Modify diskette parameters
  32.          MOV     DS,AX                   ;Offset into disk table
  33.          LDS     DI,DWORD PTR DS:78H     ;Addr of disk table
  34.          MOV     BYTE PTR [DI],239       ;Modify step rate
  35.          MOV     BYTE PTR [DI+2],200     ;And motor stop delay
  36.          INT     13H                     ;Reset diskette system
  37.          POP     DS
  38. ;
  39.          INT     20H
  40. ;
  41. SPEED    ENDP
  42. CSEG     ENDS
  43.          END     SPEED
  44. ;Reset diskette system
  45.          POP     DS
  46. ;
  47.